import request from '@/utils/request'

// 查询挂号管理列表
export function listRegistration(query) {
  return request({
    url: '/outpatient/registration/list',
    method: 'get',
    params: query
  })
}

// 查询挂号管理详细
export function getRegistration(reId) {
  return request({
    url: '/outpatient/registration/' + reId,
    method: 'get'
  })
}

// 新增挂号管理
export function addRegistration(data) {
  return request({
    url: '/outpatient/registration',
    method: 'post',
    data: data
  })
}

// 修改挂号管理
export function updateRegistration(data) {
  return request({
    url: '/outpatient/registration',
    method: 'put',
    data: data
  })
}

// 删除挂号管理
export function delRegistration(reId) {
  return request({
    url: '/outpatient/registration/' + reId,
    method: 'delete'
  })
}
// 获取病人列表
export function getPatientList(query) {
  return request({
    url: '/patients/patients/list',
    method: 'get',
    params: query
  })
}
// 获取医生列表
export function getDoctorList(query) {
  return request({
    url: '/docter/docter/list',
    method: 'get',
    params: query
  })
}
